
package gal.game.manager
{
	import com.zero.framework.interfaces.INotification;
	import com.zero.framework.interfaces.INotifyResponder;
	
	import flash.text.TextFormat;
	
	import gal.game.core.layers.UILayer;
	import gal.game.ui.gal.Dialogue;
	import gal.game.util.InstanceUtil;
	
	
	/**
	 * @author 缺硒
	 */
	public class UIManager implements INotifyResponder
	{
		public static const Text_formart:TextFormat = new TextFormat(null, 25, 0xFFFFFF, true);
		private static var __instance:UIManager;
		
		private var _uiLayer:UILayer;
		
		private var _uiDialogue:Dialogue;
		
		public static function getInstance():UIManager
		{
			if(__instance == null)
				__instance = new UIManager(new Singleton());
			return __instance;
		}
		
		// 构造函数
		public function UIManager(s:Singleton)
		{
			
		}
		
		public function get notificationList():Array
		{
			return null;
		}
		
		public function notifyHandler(notification:INotification):void
		{
		}
		
		/**
		 * 绑定ui层
		 * @param target
		 */		
		public function bindUILayer(target:UILayer):void
		{
			_uiLayer = target;
			initUI();
		}
		
		private function initUI():void
		{
			_uiDialogue = InstanceUtil.create(new Dialogue(), _uiLayer);
			
		}
		//
	}
}
class Singleton{}